package behavior.chain;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import behavior.chain.impl.FilterChainImpl;
import behavior.chain.impl.ForwardFilter;
import behavior.chain.impl.LoginFilter;

public class ChainTest {

	public static void main(String[] args) {
		List<Filter> filters = new ArrayList<Filter>();
		filters.add(new LoginFilter());
		filters.add(new ForwardFilter());
		FilterChain chain = new FilterChainImpl(filters);
		Map<String, Object> req = new HashMap<String, Object>();
		Map<String, Object> res = new HashMap<String, Object>();
		chain.doFilter(req, res);
	}

}
